package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoOrderPayLast entity provides the base persistence definition of
 * the WhoOrderPayLast entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoOrderPayLast implements java.io.Serializable {

	// Fields

	private Integer orderId;
	private String orderSn;
	private Integer payTimeLast;

	// Constructors

	/** default constructor */
	public AbstractWhoOrderPayLast() {
	}

	/** full constructor */
	public AbstractWhoOrderPayLast(String orderSn, Integer payTimeLast) {
		this.orderSn = orderSn;
		this.payTimeLast = payTimeLast;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "order_id", unique = true, nullable = false)
	public Integer getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	@Column(name = "order_sn", nullable = false, length = 20)
	public String getOrderSn() {
		return this.orderSn;
	}

	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}

	@Column(name = "pay_time_last", nullable = false)
	public Integer getPayTimeLast() {
		return this.payTimeLast;
	}

	public void setPayTimeLast(Integer payTimeLast) {
		this.payTimeLast = payTimeLast;
	}

}